
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>base依赖安装 - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>base依赖安装 - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">为什么在运行项目时，可能会出现文档中提到的 `qf_base` 依赖找不到的错误？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">因为该依赖是项目作者自己编写的，只存在于作者的本地仓库中，并未发布到公共仓库。因此，其他开发者在本地环境中没有这个依赖，导致构建时出错。</div>
          </div>
          <div class="card-source">来源: 文档开篇部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">请根据文档内容，写出将一个本地JAR文件手动安装到Maven本地仓库的完整命令示例。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">mvn install:install-file -DgroupId=com.qf.1908 -DartifactId=qf_base -Dversion=0.0.1-SNAPSHOT -Dfile=G:\qf_base-0.0.1-SNAPSHOT.jar -Dpackaging=jar -DgeneratePom=true</div>
          </div>
          <div class="card-source">来源: 2、安装到本地仓库</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">在使用 `mvn install:install-file` 命令时，`-Dfile` 参数的作用是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer"> `-Dfile` 参数用于指定待安装的本地JAR包的存放路径。使用者需要将其值替换为自己电脑上该JAR文件的实际完整路径。</div>
          </div>
          <div class="card-source">来源: 2、安装到本地仓库</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">流程</div>
          <div class="card-question">根据文档，解决自定义Maven依赖缺失问题的完整流程包含哪三个主要步骤？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">流程</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">解决该问题的三个步骤是：1. 下载缺失的依赖JAR包；2. 使用`mvn install:install-file`命令将其安装到本地仓库；3. 在IDE中重新编译或重新导入项目。</div>
          </div>
          <div class="card-source">来源: 1、下载依赖, 2、安装到本地仓库, 3、重新编译</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">参数</div>
          <div class="card-question">`mvn install:install-file` 命令中的 `-DgroupId`, `-DartifactId`, `-Dversion` 参数分别代表什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">参数</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">它们分别代表依赖的项目组织名（DgroupId）、模块名称（DartifactId）和版本号（Dversion）。这些值必须与项目`pom.xml`文件中声明的依赖信息保持一致。</div>
          </div>
          <div class="card-source">来源: 2、安装到本地仓库</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">操作</div>
          <div class="card-question">当成功将依赖安装到本地仓库后，为了让IDE（如IntelliJ IDEA）识别到这个新依赖，需要执行什么操作？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">操作</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">需要在IDE中执行“重新编译”或“重新导入（Reimport）”Maven项目的操作，这样IDE才会刷新项目依赖，并加载到新安装的库。</div>
          </div>
          <div class="card-source">来源: 3、重新编译</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
